%!TEX program = pdflatex
\documentclass{standalone}
\usepackage[UTF8]{ctex}
\usepackage{caption}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{mathdots}
\usepackage{yhmath}
\usepackage{cancel}
\usepackage{color}
\usepackage{siunitx}
\usepackage{array}
\usepackage{multirow}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage{tabularx}
\usepackage{booktabs}
\usetikzlibrary{fadings}
\tikzset{every picture/.style={line width=0.75pt}} %set default line width to 0.75pt    

\begin{document}



\tikzset{every picture/.style={line width=0.75pt}} %set default line width to 0.75pt        

\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]
%uncomment if require: \path (0,635.1999969482422); %set diagram left start at 0, and has height of 635.1999969482422

%Straight Lines [id:da9424892947929058] 
\draw [line width=0.75]    (426,160) -- (204,356) ;


%Straight Lines [id:da2831909420979376] 
\draw  [dash pattern={on 0.84pt off 2.51pt}]  (194,308) -- (221,338.36) ;


%Straight Lines [id:da8164526479138619] 
\draw    (194,308) -- (466,306.01) ;
\draw [shift={(468,306)}, rotate = 539.5799999999999] [color={rgb, 255:red, 0; green, 0; blue, 0 }  ][line width=0.75]    (10.93,-3.29) .. controls (6.95,-1.4) and (3.31,-0.3) .. (0,0) .. controls (3.31,0.3) and (6.95,1.4) .. (10.93,3.29)   ;

%Straight Lines [id:da7140616924758123] 
\draw    (194,308) -- (192.03,154) ;
\draw [shift={(192,152)}, rotate = 449.27] [color={rgb, 255:red, 0; green, 0; blue, 0 }  ][line width=0.75]    (10.93,-3.29) .. controls (6.95,-1.4) and (3.31,-0.3) .. (0,0) .. controls (3.31,0.3) and (6.95,1.4) .. (10.93,3.29)   ;

%Straight Lines [id:da28987889533731415] 
\draw    (286,282) -- (261.36,255.47) ;
\draw [shift={(260,254)}, rotate = 407.12] [color={rgb, 255:red, 0; green, 0; blue, 0 }  ][line width=0.75]    (10.93,-3.29) .. controls (6.95,-1.4) and (3.31,-0.3) .. (0,0) .. controls (3.31,0.3) and (6.95,1.4) .. (10.93,3.29)   ;

%Shape: Circle [id:dp39883561889194674] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (261.12,195.44) .. controls (261.12,193.54) and (262.66,192) .. (264.56,192) .. controls (266.46,192) and (268,193.54) .. (268,195.44) .. controls (268,197.34) and (266.46,198.88) .. (264.56,198.88) .. controls (262.66,198.88) and (261.12,197.34) .. (261.12,195.44) -- cycle ;
%Shape: Circle [id:dp7682310014017308] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (271.12,173.44) .. controls (271.12,171.54) and (272.66,170) .. (274.56,170) .. controls (276.46,170) and (278,171.54) .. (278,173.44) .. controls (278,175.34) and (276.46,176.88) .. (274.56,176.88) .. controls (272.66,176.88) and (271.12,175.34) .. (271.12,173.44) -- cycle ;
%Shape: Circle [id:dp10341565348911519] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (311.12,215.44) .. controls (311.12,213.54) and (312.66,212) .. (314.56,212) .. controls (316.46,212) and (318,213.54) .. (318,215.44) .. controls (318,217.34) and (316.46,218.88) .. (314.56,218.88) .. controls (312.66,218.88) and (311.12,217.34) .. (311.12,215.44) -- cycle ;
%Shape: Circle [id:dp9968704563788403] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (257.12,215.44) .. controls (257.12,213.54) and (258.66,212) .. (260.56,212) .. controls (262.46,212) and (264,213.54) .. (264,215.44) .. controls (264,217.34) and (262.46,218.88) .. (260.56,218.88) .. controls (258.66,218.88) and (257.12,217.34) .. (257.12,215.44) -- cycle ;
%Shape: Circle [id:dp8837466803821863] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (291.12,183.44) .. controls (291.12,181.54) and (292.66,180) .. (294.56,180) .. controls (296.46,180) and (298,181.54) .. (298,183.44) .. controls (298,185.34) and (296.46,186.88) .. (294.56,186.88) .. controls (292.66,186.88) and (291.12,185.34) .. (291.12,183.44) -- cycle ;
%Shape: Circle [id:dp2540087112341759] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (341.12,179.44) .. controls (341.12,177.54) and (342.66,176) .. (344.56,176) .. controls (346.46,176) and (348,177.54) .. (348,179.44) .. controls (348,181.34) and (346.46,182.88) .. (344.56,182.88) .. controls (342.66,182.88) and (341.12,181.34) .. (341.12,179.44) -- cycle ;
%Shape: Circle [id:dp8941424868273252] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (303.12,177.44) .. controls (303.12,175.54) and (304.66,174) .. (306.56,174) .. controls (308.46,174) and (310,175.54) .. (310,177.44) .. controls (310,179.34) and (308.46,180.88) .. (306.56,180.88) .. controls (304.66,180.88) and (303.12,179.34) .. (303.12,177.44) -- cycle ;
%Shape: Circle [id:dp5017514989769477] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (239.12,226.56) .. controls (239.12,224.66) and (240.66,223.12) .. (242.56,223.12) .. controls (244.46,223.12) and (246,224.66) .. (246,226.56) .. controls (246,228.46) and (244.46,230) .. (242.56,230) .. controls (240.66,230) and (239.12,228.46) .. (239.12,226.56) -- cycle ;
%Shape: Circle [id:dp9737737030807251] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (283.12,207.44) .. controls (283.12,205.54) and (284.66,204) .. (286.56,204) .. controls (288.46,204) and (290,205.54) .. (290,207.44) .. controls (290,209.34) and (288.46,210.88) .. (286.56,210.88) .. controls (284.66,210.88) and (283.12,209.34) .. (283.12,207.44) -- cycle ;
%Shape: Circle [id:dp31180210206187486] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (287.12,221.44) .. controls (287.12,219.54) and (288.66,218) .. (290.56,218) .. controls (292.46,218) and (294,219.54) .. (294,221.44) .. controls (294,223.34) and (292.46,224.88) .. (290.56,224.88) .. controls (288.66,224.88) and (287.12,223.34) .. (287.12,221.44) -- cycle ;
%Shape: Circle [id:dp5538112070753983] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (301.12,193.44) .. controls (301.12,191.54) and (302.66,190) .. (304.56,190) .. controls (306.46,190) and (308,191.54) .. (308,193.44) .. controls (308,195.34) and (306.46,196.88) .. (304.56,196.88) .. controls (302.66,196.88) and (301.12,195.34) .. (301.12,193.44) -- cycle ;
%Shape: Circle [id:dp5338712834006746] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (339.12,197.44) .. controls (339.12,195.54) and (340.66,194) .. (342.56,194) .. controls (344.46,194) and (346,195.54) .. (346,197.44) .. controls (346,199.34) and (344.46,200.88) .. (342.56,200.88) .. controls (340.66,200.88) and (339.12,199.34) .. (339.12,197.44) -- cycle ;
%Shape: Circle [id:dp7608313349400997] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (265.12,226.56) .. controls (265.12,224.66) and (266.66,223.12) .. (268.56,223.12) .. controls (270.46,223.12) and (272,224.66) .. (272,226.56) .. controls (272,228.46) and (270.46,230) .. (268.56,230) .. controls (266.66,230) and (265.12,228.46) .. (265.12,226.56) -- cycle ;
%Shape: Circle [id:dp2540521408519242] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (281.12,215.44) .. controls (281.12,213.54) and (282.66,212) .. (284.56,212) .. controls (286.46,212) and (288,213.54) .. (288,215.44) .. controls (288,217.34) and (286.46,218.88) .. (284.56,218.88) .. controls (282.66,218.88) and (281.12,217.34) .. (281.12,215.44) -- cycle ;
%Shape: Circle [id:dp2733335838537324] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (275.12,202.56) .. controls (275.12,200.66) and (276.66,199.12) .. (278.56,199.12) .. controls (280.46,199.12) and (282,200.66) .. (282,202.56) .. controls (282,204.46) and (280.46,206) .. (278.56,206) .. controls (276.66,206) and (275.12,204.46) .. (275.12,202.56) -- cycle ;
%Shape: Circle [id:dp08785989421712548] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (241.12,186.56) .. controls (241.12,184.66) and (242.66,183.12) .. (244.56,183.12) .. controls (246.46,183.12) and (248,184.66) .. (248,186.56) .. controls (248,188.46) and (246.46,190) .. (244.56,190) .. controls (242.66,190) and (241.12,188.46) .. (241.12,186.56) -- cycle ;
%Shape: Circle [id:dp1474879662659898] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (253.12,232.56) .. controls (253.12,230.66) and (254.66,229.12) .. (256.56,229.12) .. controls (258.46,229.12) and (260,230.66) .. (260,232.56) .. controls (260,234.46) and (258.46,236) .. (256.56,236) .. controls (254.66,236) and (253.12,234.46) .. (253.12,232.56) -- cycle ;
%Shape: Circle [id:dp980331229906375] 
\draw  [color={rgb, 255:red, 177; green, 17; blue, 17 }  ,draw opacity=1 ][fill={rgb, 255:red, 214; green, 29; blue, 29 }  ,fill opacity=1 ] (224,244.56) .. controls (224,242.66) and (225.54,241.12) .. (227.44,241.12) .. controls (229.34,241.12) and (230.88,242.66) .. (230.88,244.56) .. controls (230.88,246.46) and (229.34,248) .. (227.44,248) .. controls (225.54,248) and (224,246.46) .. (224,244.56) -- cycle ;
%Shape: Circle [id:dp5456316205162189] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (321.12,279.44) .. controls (321.12,277.54) and (322.66,276) .. (324.56,276) .. controls (326.46,276) and (328,277.54) .. (328,279.44) .. controls (328,281.34) and (326.46,282.88) .. (324.56,282.88) .. controls (322.66,282.88) and (321.12,281.34) .. (321.12,279.44) -- cycle ;
%Shape: Circle [id:dp0969690414135993] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (352,280.56) .. controls (352,278.66) and (353.54,277.12) .. (355.44,277.12) .. controls (357.34,277.12) and (358.88,278.66) .. (358.88,280.56) .. controls (358.88,282.46) and (357.34,284) .. (355.44,284) .. controls (353.54,284) and (352,282.46) .. (352,280.56) -- cycle ;
%Shape: Circle [id:dp37724601113923584] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (377.12,241.44) .. controls (377.12,239.54) and (378.66,238) .. (380.56,238) .. controls (382.46,238) and (384,239.54) .. (384,241.44) .. controls (384,243.34) and (382.46,244.88) .. (380.56,244.88) .. controls (378.66,244.88) and (377.12,243.34) .. (377.12,241.44) -- cycle ;
%Shape: Circle [id:dp9440961743821119] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (363.12,269.44) .. controls (363.12,267.54) and (364.66,266) .. (366.56,266) .. controls (368.46,266) and (370,267.54) .. (370,269.44) .. controls (370,271.34) and (368.46,272.88) .. (366.56,272.88) .. controls (364.66,272.88) and (363.12,271.34) .. (363.12,269.44) -- cycle ;
%Shape: Circle [id:dp8127635532787726] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (385.12,229.44) .. controls (385.12,227.54) and (386.66,226) .. (388.56,226) .. controls (390.46,226) and (392,227.54) .. (392,229.44) .. controls (392,231.34) and (390.46,232.88) .. (388.56,232.88) .. controls (386.66,232.88) and (385.12,231.34) .. (385.12,229.44) -- cycle ;
%Shape: Circle [id:dp43060344964207664] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (363.12,239.44) .. controls (363.12,237.54) and (364.66,236) .. (366.56,236) .. controls (368.46,236) and (370,237.54) .. (370,239.44) .. controls (370,241.34) and (368.46,242.88) .. (366.56,242.88) .. controls (364.66,242.88) and (363.12,241.34) .. (363.12,239.44) -- cycle ;
%Shape: Circle [id:dp04962079089362459] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (305.12,287.44) .. controls (305.12,285.54) and (306.66,284) .. (308.56,284) .. controls (310.46,284) and (312,285.54) .. (312,287.44) .. controls (312,289.34) and (310.46,290.88) .. (308.56,290.88) .. controls (306.66,290.88) and (305.12,289.34) .. (305.12,287.44) -- cycle ;
%Shape: Circle [id:dp0501630722833869] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (341.12,273.44) .. controls (341.12,271.54) and (342.66,270) .. (344.56,270) .. controls (346.46,270) and (348,271.54) .. (348,273.44) .. controls (348,275.34) and (346.46,276.88) .. (344.56,276.88) .. controls (342.66,276.88) and (341.12,275.34) .. (341.12,273.44) -- cycle ;
%Shape: Circle [id:dp3453323539629254] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (348,263.44) .. controls (348,261.54) and (349.54,260) .. (351.44,260) .. controls (353.34,260) and (354.88,261.54) .. (354.88,263.44) .. controls (354.88,265.34) and (353.34,266.88) .. (351.44,266.88) .. controls (349.54,266.88) and (348,265.34) .. (348,263.44) -- cycle ;
%Shape: Circle [id:dp8971139711700999] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (372,221.44) .. controls (372,219.54) and (373.54,218) .. (375.44,218) .. controls (377.34,218) and (378.88,219.54) .. (378.88,221.44) .. controls (378.88,223.34) and (377.34,224.88) .. (375.44,224.88) .. controls (373.54,224.88) and (372,223.34) .. (372,221.44) -- cycle ;
%Shape: Circle [id:dp7711727916562992] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (331.12,267.44) .. controls (331.12,265.54) and (332.66,264) .. (334.56,264) .. controls (336.46,264) and (338,265.54) .. (338,267.44) .. controls (338,269.34) and (336.46,270.88) .. (334.56,270.88) .. controls (332.66,270.88) and (331.12,269.34) .. (331.12,267.44) -- cycle ;
%Shape: Circle [id:dp8502371811832367] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (368,259.44) .. controls (368,257.54) and (369.54,256) .. (371.44,256) .. controls (373.34,256) and (374.88,257.54) .. (374.88,259.44) .. controls (374.88,261.34) and (373.34,262.88) .. (371.44,262.88) .. controls (369.54,262.88) and (368,261.34) .. (368,259.44) -- cycle ;
%Shape: Circle [id:dp5704751136252609] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (349.12,247.44) .. controls (349.12,245.54) and (350.66,244) .. (352.56,244) .. controls (354.46,244) and (356,245.54) .. (356,247.44) .. controls (356,249.34) and (354.46,250.88) .. (352.56,250.88) .. controls (350.66,250.88) and (349.12,249.34) .. (349.12,247.44) -- cycle ;
%Shape: Circle [id:dp5313185987445052] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (338,284.56) .. controls (338,282.66) and (339.54,281.12) .. (341.44,281.12) .. controls (343.34,281.12) and (344.88,282.66) .. (344.88,284.56) .. controls (344.88,286.46) and (343.34,288) .. (341.44,288) .. controls (339.54,288) and (338,286.46) .. (338,284.56) -- cycle ;
%Shape: Circle [id:dp4459664439707868] 
\draw  [color={rgb, 255:red, 172; green, 12; blue, 12 }  ,draw opacity=0.28 ][fill={rgb, 255:red, 251; green, 246; blue, 246 }  ,fill opacity=1 ] (381.12,253.44) .. controls (381.12,251.54) and (382.66,250) .. (384.56,250) .. controls (386.46,250) and (388,251.54) .. (388,253.44) .. controls (388,255.34) and (386.46,256.88) .. (384.56,256.88) .. controls (382.66,256.88) and (381.12,255.34) .. (381.12,253.44) -- cycle ;

% Text Node
\draw (194,333.4) node [rotate=-53.1]  {$\frac{b}{||\mathbf{w} ||}$};
% Text Node
\draw (285.83,263.65) node [rotate=-49.73]  {$\mathbf{w}$};
% Text Node
\draw (358.84,203.76) node [rotate=-318.09]  {$\mathbf{w}^{T} x+b=0$};
% Text Node
\draw (195,144.5) node   {$x_{1}$};
% Text Node
\draw (479,306.5) node   {$x_{2}$};


\end{tikzpicture}

\end{document}
